CLDSRV-616 [hf-7.70.51] Fix bucket policy check for anonymous requests#5750
CLDSRV-616 [hf-7.70.51] Fix bucket policy check for anonymous requests#5750bert-e merged 2 commits intohotfix/7.70.51from
Conversation
When checking bucket policies and the following conditions
are true:
- The request is anonymous (`--no-sign-request`)
- There is a bucket policy with AWS principal
Then `_getAccountId` is called in arn === undefined and
causes an exception to be thrown.
The reason is that vault return the following authInfo
with anonymous requests:
{
arn: undefined,
canonicalID: 'http://acs.amazonaws.com/groups/global/AllUsers',
shortid: undefined,
email: undefined,
accountDisplayName: undefined,
IAMdisplayName: undefined
}
The fix is to check is to check is arn === undefined and fail
the check if the policy principal is not '*'
(cherry picked from commit d57e3a9)
Hello dvasilas,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I expected to find at least:
Please check the |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
|
/approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-616. Goodbye dvasilas. The following options are set: approve |
Cherry-pick from #5748